<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
	
	if(isset($deal_detail)){
		$titleTemp = 'Chanh ớt - '.$deal_detail[0]['name'];
		$imgTemp = base_url($deal_detail[0]['small_image']);
	} else{
		$titleTemp = 'Chanh ớt - Mua deal khuyến mãi, giá rẻ - mua deal khuyến mãi';
		$imgTemp = base_url('images/logo.png');
	}
?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $titleTemp; ?></title>
<meta name="robots" content="index, follow">
<meta name="description" content="Chanh ớt, mua các deal sản phẩm và dịch vụ giảm giá, khuyến mãi, thời trang" />
<meta name="keywords" content="<?php echo $titleTemp; ?>" />
<meta property="og:title" content="<?php echo $titleTemp; ?>"/>
<meta property="og:description" content="<?php echo $titleTemp; ?>" />
<meta property="og:image" content="<?php echo $imgTemp; ?>" />
<link rel="image_src" href="<?php echo $imgTemp; ?>" />
<link type="image/x-icon" href="<?php echo base_url('images/favicon.jpg'); ?>" rel="icon"></link>
<link type="image/x-icon" href="<?php echo base_url('images/favicon.jpg'); ?>" rel="shortcut icon"></link>
<link href="<?php echo base_url('css/style.css'); ?>" rel="stylesheet" type="text/css" />
<script src = "<?php echo base_url('js/jquery-1.4.min.js'); ?>" type="text/javascript"></script>
<script src = "<?php echo base_url('js/jquery.easing-1.3.js'); ?>" type="text/javascript"></script>
<!-- iosSlider plugin -->
<script src = "<?php echo base_url('js/jquery.iosslider.js'); ?>" type="text/javascript"></script>
<script src = "<?php echo base_url('js/control.js'); ?>" type="text/javascript"></script>


</head>

<body>


<?php $this->load->file("page/header.php");?>
<!-- end header -->

<div class="main_content">
  			<?php 
			if($action=="home")
				$this->load->file("content/home.php");
			if($action=="deal_detail")
				$this->load->file("content/deal_detail.php");		
			if($action=="dealtoday")
				$this->load->file("content/dealtoday.php");			
			if($action=="list_deal")
				$this->load->file("content/list_deal.php");	
			if($action=="list_deal_top_seller")
				$this->load->file("content/list_deal.php");					
			if($action=="cart")
				$this->load->file("content/cart.php");			
			if($action=="payment")
				$this->load->file("content/payment.php");		
			if($action=="thanks")
				$this->load->file("content/thanks.php");	
			if($action=="login" || $action=="register")
				$this->load->file("content/account.php");	
			if($action=="login" || $action=="person")
				$this->load->file("content/person.php");	

			if($action=="add_deal")
				$this->load->file("content/add_deal.php");
			if($action=="list_deal_account")
				$this->load->file("content/list_deal_account.php");				
				
			if($action=="edit_deal")
				$this->load->file("content/edit_deal.php");
			?>
</div>
<!-- end main content -->
<?php $this->load->file("page/footer.php");?>
</body>
</html>
